# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-python-openflow
_pkgname=python-openflow
pkgver=2021.1
pkgrel=6
epoch=1
pkgdesc='Library to parse and generate OpenFlow messages.'
url='https://pypi.org/project/python-openflow/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('15c288ab8777f8c5e24fec24ff533fbcafbc1b70174802c0c575a71423eacafc08c1c3d1d9230e42bafc3699aab3237f4c36e24cd35cc15bfae41bd176595a4c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

